package pl.org.lutra.planner.gui.resources;

import java.util.MissingResourceException;
import java.util.ResourceBundle;

import pl.org.lutra.planner.log.Log;

public class Text {
	private static final ResourceBundle RESOURCE = ResourceBundle
			.getBundle("pl.org.lutra.planner.gui.resources.text");

	public static String get(String key) {
		try {
			return RESOURCE.getString(key);
		} catch (MissingResourceException exception) {
			Log.warning(exception);
			return key;
		}
	}
}
